#include <iostream>
using namespace std;

class Date 
{
private:
	int _year;
	int _month;
	int _day;

public:
	//Date() 
	//{
	//	_year = 1;
	//	_month = 1;
	//	_day = 1;
	//};

	Date(int year = 1, int month = 1, int day = 1)
	{
		_year = year;
		_month = month;
		_day = day;
	}

	void Print()
	{
		cout << _year << "-" << _month << "-" << _day << endl;
	}
};

int main()
{
	Date d1;
	d1.Print();

	Date d2(2023, 10, 19);
	d2.Print();

	Date* p = new Date(0,0,0);
	p->Print();

	delete p;
	return 0;
}